package com.pkk.penguin.frame.know.boot.config.handle.hbsl;

import com.pkk.penguin.frame.know.boot.config.common.handle.AbstractWebSocketServer;
import com.pkk.penguin.frame.know.boot.constand.WebSocketType;
import javax.websocket.server.ServerEndpoint;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @description: 长连接
 * @author: peikunkun
 * @create: 2020-05-12 17:47
 **/
@Slf4j
@ServerEndpoint("/hbsl/{clientCode}")
@Component
public class HbslWebSocketServer extends AbstractWebSocketServer<HbslWebSocketServer> {


  /**
   * @Description: 获取websocket的类型
   * @return: com.pkk.penguin.frame.know.boot.constand.WebSocketType
   * @Author: peikunkun
   * @Date: 2020/5/20 0020 上午 11:27
   */
  @Override
  public WebSocketType getWebSocketType() {
    return WebSocketType.HBSL_STUDY;
  }

}

